package chapter_21


object ImplicitObject {

  def note1 = "abc123" exists (_.isDigit)

  implicit def doubleToInt(x : Double) = x.toInt

  def main(args: Array[String]): Unit = {
    println(note1)
    println(doubleToInt(3.14))

  }
}
